package com.foo;

public class BoxBuilder {
	
	private int length = 1;
	private int width =2;
	private int x = 3;
	private int y = 4;
	
	public BoxBuilder(){
	}

	public BoxBuilder setLength(int length) {
		this.length = length;
		return this;
	}

	public BoxBuilder setWidth(int width) {
		this.width = width;
		return this;
	}

	public int getLength() {
		return length;
	}

	public int getWidth() {
		return width;
	}
	
	public Box create(){
		return new Box( this);
	}

	public int getX() {
		return x;
	}
	public int getY() {
		return y;
	}
}
